package com.tiansu.reborn.wanda.modules.executor.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.joda.time.DateTime;

import java.util.Date;

@Data
@TableName("te_payment_payrecord")
public class PayRecordEntity {

    private int id;

    private Date operationtime;

    private String accountcode;

    private String roomname;

    private Integer deviceid;

    private Double paycount;

    private String operater;

    private String computername;


    private Integer paptaker;

    private String billserial;

    private Integer rechargetype;

    private Double beforerecharge;

    private Double aftererecharge;

    private Date rechargetime;

    private Integer count;

    private Integer upmark;

    private Long brandid;

    private Integer plazaid;

    private String bunkcode;

    @TableField(select = false,exist = false)

    private String rechargetimeStr;

    public String getRechargetimeStr() {
        return new DateTime(rechargetime).toString("yyyy-MM-dd HH:mm:ss");
    }
}
